// @ts-nocheck
import Vue from 'vue';
import Vuex, { Module } from 'vuex';
Vue.use(Vuex);

const context = require['context']('./moudel', false, /\.ts$/);
const getModel = context.keys().map((key) => context(key));
const modules = {};
getModel.forEach((model) => {
  modules[model.default.namespace] = model.default;
});

const Store: Module = new Vuex.Store({
  modules,
});

export default Store;
